package com.zyc.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zyc.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyc.eduservice.entity.vo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-02-19
 */
public interface EduCourseService extends IService<EduCourse> {
    public String saveCourseInfo(CourseInfoVo courseInfo);

    public CourseInfoVo getCourseInfoById(String id);

    public String updateById(String id, CourseInfoVo courseInfo);

    public CoursePublishVo getPublishInfo(String id);

    public void publish(String id);

    public void pageQuery(Page<EduCourse> coursePage, EduCourseQuery courseQuery);

    public boolean removeCourse(String id);

    public List<EduCourse> selectByTeacherId(String id);

    public Map<String, Object> pageListWeb(Page<EduCourse> pageParam, CourseQueryVo courseQuery);

    CourseWebVo selectInfoWebById(String courseId);


    /**
     * 更新课程浏览数
     * @param id
     */
    void updatePageViewCount(String id);
}

